import request from '@/utils/request'

export function add_header(data) {
  return request({
    url: '/header',
    method: 'post',
    data
  })
}

export function page_id(id) {
  return request({
    url: '/header/' + id,
    method: 'get'
  })
}

export function query_header(id) {
  return request({
    url: '/header/detail/' + id,
    method: 'get'
  })
}

export function update_header(data) {
  return request({
    url: '/header',
    method: 'put',
    data
  })
}

export function delete_header(data) {
  return request({
    url: '/header/delete',
    method: 'post',
    data
  })
}
